[memory.flash]
size = "{{size device_flash_size}}"
origin = {{addr device_flash_origin}}

[memory.ram]
size = "{{size device_ram_size}}"
origin = {{addr device_ram_origin}}

{{heap}}

[linker]
platform = "{{linker_platform}}"

[probe]
gdb-client-command = "gdb-multiarch"

{{#if (eq probe_ident "bmp") ~}}
[probe.bmp]
device = "{{probe_bmp_device}}"
gdb-endpoint = "/dev/ttyBmpGdb"
{{~/if}}{{#if (eq probe_ident "jlink") ~}}
[probe.jlink]
gdb-server-command = "JLinkGDBServerCLExe"
commander-command = "JLinkExe"
device = "{{probe_jlink_device}}"
interface = "{{probe_jlink_interface}}"
speed = 4000
port = 2331
{{~/if}}{{#if (eq probe_ident "openocd") ~}}
[probe.openocd]
command = "openocd"
port = 3333
arguments = [{{#each probe_openocd_arguments}}{{#unless @first}}, {{/unless}}"{{this}}"{{/each}}]
{{~/if}}

{{#if (or (eq log_ident "swoprobe") (eq log_ident "swoserial")) ~}}
[log.swo]
reset-freq = {{log_swo_reset_freq}}
baud-rate = 115200
{{~#if (eq probe_ident "bmp")}}
serial-endpoint = "/dev/ttyBmpTarg"
{{~else}}
serial-endpoint = "/dev/ttyACM0"
{{~/if}}
{{~/if}}{{#if (eq log_ident "dsoserial") ~}}
[log.dso]
baud-rate = 115200
serial-endpoint = "/dev/ttyACM0"
{{~/if}}
